package com.xjust.service.impl;

import com.xjust.Mapper.DrugInfoMapper;
import com.xjust.service.DrugInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DrugInfoServiceImpl implements DrugInfoService {
    @Autowired
   private DrugInfoMapper drugInfoMapper;
    //搜索药品
    @Override
    public List<Map<String,Object>> searchDrug(String drugName, String mnemonicCode) {
        List<Map<String,Object>> list = drugInfoMapper.selectDrug(drugName,mnemonicCode);
        return list;
    }
}
